package cn.tworice.system.controller;

import cn.tworice.common.vo.RequestResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/index")
@Slf4j
@CrossOrigin
@Api(tags = "服务测试")
public class IndexController {

    @GetMapping()
    @ApiOperation("服务测试")
    public RequestResult index(){
        return RequestResult.success();
    }

}
